package com.douya.pangu.application.sys.pojo.entity.es;

import com.douya.common.pojo.entity.ElasticSearchEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;

import java.time.LocalDateTime;

/**
 * @Author hcy
 * @Date 2023/7/5
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@Document(indexName = "core_log", refreshInterval = "30")
public class CoreLogEsDO extends ElasticSearchEntity {

    String path;
    String parameterMap;
    Long userId;
    String method;
    String ipAddr;
    String applicationName;
    Long timeTaken;
    String requestBody;
    String responseBody;
    LocalDateTime requestTime;
}
